package com.ss.android.article.base.utils;

import java.lang.ref.WeakReference;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public final class m implements InvocationHandler {
    private WeakReference a;

    public m(Object arg2) {

        this.a = new WeakReference(arg2);
    }

    public final Object invoke(Object arg5, Method arg6, Object[] arg7) throws Throwable {
        Long v0_3;
        Object v0 = null;
        Object v1 = this.a.get();
        if(v1 == null) {
            Class v1_1 = arg6.getReturnType();
            if(v1_1 != null) {
                if(v1_1 != Boolean.TYPE && v1_1 != Boolean.class) {
                    if(v1_1 != Byte.TYPE && v1_1 != Byte.class) {
                        if(v1_1 != Character.TYPE && v1_1 != Character.class) {
                            if(v1_1 != Short.TYPE && v1_1 != Short.class) {
                                if(v1_1 != Integer.TYPE && v1_1 != Integer.class) {
                                    if(v1_1 != Long.TYPE && v1_1 != Long.class) {
                                        if(v1_1 != Float.TYPE && v1_1 != Float.class) {
                                            if(v1_1 != Double.TYPE && v1_1 != Double.class) {
                                                return null;
                                            }

                                            Double v0_1 = Double.valueOf(0);
                                            return v0_1;
                                        }

                                        Float v0_2 = Float.valueOf(0f);
                                        return v0_2;
                                    }

                                    v0_3 = Long.valueOf(0);
                                    return v0_3;
                                }

                                Integer v0_4 = Integer.valueOf(0);
                                return v0_4;
                            }

                            Short v0_5 = Short.valueOf((short) 0);
                            return v0_5;
                        }

                        Character v0_6 = Character.valueOf('\u0000');
                        return v0_6;
                    }

                    Byte v0_7 = Byte.valueOf((byte) 0);
                    return v0_7;
                }

                v0 = Boolean.valueOf(false);
            }
        } else {
            v0 = arg6.invoke(v1, arg7);
        }

        return v0;
    }
}

